<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

</head>
<body>
<form  th:action="@{/parking/save}" th:object="${parking}" method="post">
    <input  type="hidden" th:field="*{id}">

    <br>

    <div class="input-group mb-3">
        <span class="input-group-text">停车场名称</span>
        <input type="text" th:field="*{name}" class="form-control" >
    </div>
    <div class="input-group mb-3">
        <span class="input-group-text">容积</span>
        <input type="number" th:field="*{volumetric}" class="form-control">
    </div>
    <div class="form-group">
        <span class="input-group-text">资费标准</span>
        <select class="form-group" name="pricingId" id="pricingId">
            <option th:each="pricing:${pricingList}" th:value="${pricing.id}" th:text="${pricing.updateTime}"></option>
        </select>
    </div>
    <input class="btn btn-primary" type="submit" th:value="提交">
    <a th:href="@{/parking/list}" class="btn btn-secondary">返回</a>
</form>
<div th:relace="~{fragment/header::header=js}"></div>
<div th:relace="~{fragment/footer::footer}"></div>
</body>
</html>